package com.blog.blog.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;


/**
 * 与数据库sys_user表对应
 */
@Data
public class SysUser implements Serializable {
    /**
     * 以后用户多了，要进行分表操作，id就需要用分布式id了
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String account;

    private Integer admin;

    private String avatar;

    private Long createDate;

    private Integer deleted;

    private String email;

    private Long lastLogin;

    private String mobilePhoneNumber;

    private String nickname;

    private String password;

    private String salt;

    private String status;

    private String address;

    private String personalProfile;

    private Integer fansNum;

    private Integer type;
}
